<?php /* Smarty version 2.6.26, created on 2012-05-12 15:18:35
         compiled from controllers%5Cnews.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'rlHook', 'controllers\\news.tpl', 13, false),array('function', 'paging', 'controllers\\news.tpl', 31, false),array('modifier', 'date_format', 'controllers\\news.tpl', 17, false),array('modifier', 'strip_tags', 'controllers\\news.tpl', 23, false),array('modifier', 'truncate', 'controllers\\news.tpl', 23, false),array('modifier', 'strlen', 'controllers\\news.tpl', 23, false),)), $this); ?>
<!-- news tpl -->

<div class="highlight">
	<?php if (empty ( $this->_tpl_vars['news'] )): ?>
		<?php if (! empty ( $this->_tpl_vars['all_news'] )): ?>
			<ul class="news">
			<?php $_from = $this->_tpl_vars['all_news']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['news']):
?>
				<li class="page">
					<table>
					<tr>
						<td>
							<a title="<?php echo $this->_tpl_vars['news']['title']; ?>
" href="<?php echo $this->_tpl_vars['rlBase']; ?>
<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?><?php echo $this->_tpl_vars['pages']['news']; ?>
/<?php echo $this->_tpl_vars['news']['Path']; ?>
.html<?php else: ?>?page=<?php echo $this->_tpl_vars['pages']['news']; ?>
&amp;id=<?php echo $this->_tpl_vars['news']['ID']; ?>
<?php endif; ?>"><?php echo $this->_tpl_vars['news']['title']; ?>
</a>
							<?php echo rlHook::load(array('name' => 'newsPostCaption'), $this);?>

						</td>
						<td class="date">
							<div>
								<?php echo ((is_array($_tmp=$this->_tpl_vars['news']['Date'])) ? $this->_run_mod_handler('date_format', true, $_tmp, @RL_DATE_FORMAT) : smarty_modifier_date_format($_tmp, @RL_DATE_FORMAT)); ?>

							</div>
						</td>
					</tr>
					</table>
					<div class="dark">
						<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['news']['content'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp, false) : smarty_modifier_strip_tags($_tmp, false)))) ? $this->_run_mod_handler('truncate', true, $_tmp, $this->_tpl_vars['config']['news_page_content_length'], "", false) : smarty_modifier_truncate($_tmp, $this->_tpl_vars['config']['news_page_content_length'], "", false)); ?>
<?php if (((is_array($_tmp=$this->_tpl_vars['news']['content'])) ? $this->_run_mod_handler('strlen', true, $_tmp) : strlen($_tmp)) > $this->_tpl_vars['config']['news_page_content_length']): ?>...<?php endif; ?>
						<?php echo rlHook::load(array('name' => 'newsPostContent'), $this);?>

					</div>
				</li>
			<?php endforeach; endif; unset($_from); ?>
			</ul>
			
			<!-- paging block -->
			<?php echo rlSmarty::paging(array('calc' => $this->_tpl_vars['pInfo']['calc'],'total' => $this->_tpl_vars['all_news'],'current' => $this->_tpl_vars['pInfo']['current'],'per_page' => $this->_tpl_vars['config']['news_at_page']), $this);?>

			<!-- paging block end -->
			
		<?php else: ?>
			<div class="info"><?php echo $this->_tpl_vars['lang']['no_news']; ?>
</div>
		<?php endif; ?>
	<?php else: ?>
		<div class="news">
			<table class="sTable">
			<tr>
				<td>
					<?php echo rlHook::load(array('name' => 'newsPostCaption'), $this);?>

				</td>
				<td class="date">
					<div>
						<?php echo ((is_array($_tmp=$this->_tpl_vars['news']['Date'])) ? $this->_run_mod_handler('date_format', true, $_tmp, @RL_DATE_FORMAT) : smarty_modifier_date_format($_tmp, @RL_DATE_FORMAT)); ?>

					</div>
				</td>
			</tr>
			</table>
			<div class="dark">
				<?php echo $this->_tpl_vars['news']['content']; ?>

				
				<?php echo rlHook::load(array('name' => 'newsPostContent'), $this);?>

			</div>
		</div>
		
		<div class="ralign">
			<a title="<?php echo $this->_tpl_vars['lang']['back_to_news']; ?>
" href="<?php echo $this->_tpl_vars['rlBase']; ?>
<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?><?php echo $this->_tpl_vars['pages']['news']; ?>
.html<?php else: ?>?page=<?php echo $this->_tpl_vars['pages']['news']; ?>
<?php endif; ?>"><?php echo $this->_tpl_vars['lang']['back_to_news']; ?>
</a>
		</div>
	<?php endif; ?>
	
	<?php echo rlHook::load(array('name' => 'newsBottomTpl'), $this);?>

</div>

<!-- news tpl end -->